import { ComponentInternalInstance, getCurrentInstance } from 'vue'
export default function useCurrentInstance() {
    const { appContext } = getCurrentInstance() as ComponentInternalInstance
    const globalProperties = appContext.config.globalProperties
    return {
        globalProperties
    }
}
//使用方式如下：
// import useCurrentInstance from "@/hooks/useCurrentInstance";
// const { globalProperties } = useCurrentInstance();
// let sid = globalProperties.$sid;